﻿{include file="public/header"}
<title>订单列表</title>
</head>
<style>
    .layui-layer-page .layui-layer-content {
        overflow: visible !important;
    }

</style>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 统计管理
    <span class="c-gray en">&gt;</span>统计列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form method="get">
        <div class="ch-c">
            <span style="line-height: 32px;">月份：</span>
            <input type="text" name="start_time" id="countTimestart" onfocus="selecttime(1)" size="17"
            class="ch-form-assignor" readonly value="<?php echo isset($data['start_time'])?$data['start_time']:''?>">
            <select name="store_id" class="ch-form-cSelect">
                <option value="" selected>分店</option>
                {volist name='l' id='v'}
                <option value="{$v.store_id}">{$v.store_name}</option>
                {/volist}
            </select>
            <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
    </form>

    <div class="mt-20">
        <div class="title-border screen-phone">
            <div class="flex1"></div>
            <div class="flex1">订单量</div>
            <div class="flex1">有效订单</div>
            <div class="flex1">上门量</div>
            <div class="flex1">成交量</div>
            <div class="flex1">成交额</div>
            <div class="flex1">客单价</div>
            <div class="flex1">上门率</div>
            <div class="flex1">上门成交率</div>
            <div class="flex1">订单成交率</div>
        </div>
        <div class="content-border screen-phone">
            <div class="flex1">总计</div>
            <div class="flex1">{$list1}</div>
            <div class="flex1">{$list9}</div>
            <div class="flex1">{$list2}</div>
            <div class="flex1">{$list3}</div>
            <div class="flex1">{$list4}</div>
            <div class="flex1">{$list5}</div>
            <div class="flex1">{$list6}%</div>
            <div class="flex1">{$list7}%</div>
            <div class="flex1">{$list8}%</div>
        </div>
    
    
        <div class="ch-column-over screen-pc">
            <div class="ch-column-track">
                <div class="ch-column-row">
                    <div class="ch-column-title"></div>
                    <div class="ch-column-text">
                        <div class="ch-column-content ch-column-num">总计</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">订单量</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list1}</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">有效订单</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list9}</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">上门量</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list2}</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">成交量</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list3}</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">成交额</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list4}</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">客单价</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list5}</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">上门率</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list6}%</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">上门成交率</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list7}%</div>
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">订单成交率</div>
                    <div class="ch-column-text">
                        <div class="ch-column-content">{$list8}%</div>
                    </div>
                </div>
            </div>
        </div>
    </div>



    <div class="mt-20">
        <div class="title-border screen-phone">
            <div class="flex1">日期</div>
            <div class="flex1">店铺</div>
            <div class="flex1">订单量</div>
            <div class="flex1">有效订单量</div>
            <div class="flex1">上门量</div>
            <div class="flex1">成交量</div>
            <div class="flex1">成交额</div>
            <div class="flex1">客单价</div>
            <div class="flex1">上门率</div>
            <div class="flex1">上门成交率</div>
            <div class="flex1">订单成交率</div>
        </div>
        {volist name='list' id='vo'}
        <div class="content-border screen-phone">
            <div class="flex1">{:date('Y-m',$vo.date)}</div>
            <div class="flex1">{$vo.store_name}</div>
            <div class="flex1">{$vo.count}</div>
            <div class="flex1">{$vo.you_count}</div>
            <div class="flex1">{$vo.shang_count}</div>
            <div class="flex1">{$vo.deal}</div>
            <div class="flex1">{$vo.turnover}</div>
            <div class="flex1"><span style="color: red">{$vo.unit}</span></div>
            <div class="flex1">{$vo.effective}%</div>
            <div class="flex1">{$vo.turnovers}%</div>
            <div class="flex1">{$vo.orderturnover}%</div>
        </div>
        {/volist}

        <div class="ch-column-over screen-pc">
            <div class="ch-column-track">
                <div class="ch-column-row">
                    <div class="ch-column-title">日期</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{:date('Y-m',$vo.date)}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">店铺</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.store_name}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">订单量</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.count}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">有效订单量</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.you_count}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">上门量</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.shang_count}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">成交量</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.deal}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">成交额</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.turnover}</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">客单价</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content"><span style="color: red">{$vo.unit}</span></div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">上门率</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.effective}%</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">上门成交率</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.turnovers}%</div>
                        {/volist}
                    </div>
                </div>
                <div class="ch-column-row">
                    <div class="ch-column-title">订单成交率</div>
                    <div class="ch-column-text">
                        {volist name='list' id='vo'}
                        <div class="ch-column-content">{$vo.orderturnover}%</div>
                        {/volist}
                    </div>
                </div>
            </div>
        </div>
        
        <div class="pages" style="float: right">{$list->render()}</div>

    </div>
</div>


{include file="public/footer"}
<script>
    $(function(){
        var columnTitle = ($(window).width() - 30)*0.3;
        var columnContent = ($(window).width() - 30)*0.7;
        $(".ch-column-track").css({
            "width": columnTitle + (columnContent * $(".ch-column-num").length) + 'px',
            "padding-left": columnTitle,
        });
        $(".ch-column-title").css("width",columnTitle);
        $(".ch-column-content").css("width",columnContent);
        for( var i=0;i<$(".ch-column-title").length;i++){
            $(".ch-column-title").eq(i).css("height",$(".ch-column-text").eq(i).height())
        }
    })
</script>
<script type="text/javascript">
    function selecttime(flag) {
        if (flag == 1) {
            var endTime = $("#countTimeend").val();
            if (endTime != "") {
                WdatePicker({dateFmt: 'yyyy-MM', maxDate: endTime})
            } else {
                WdatePicker({dateFmt: 'yyyy-MM'})
            }
        } else {
            var startTime = $("#countTimestart").val();
            if (startTime != "") {
                WdatePicker({dateFmt: 'yyyy-MM', minDate: startTime})
            } else {
                WdatePicker({dateFmt: 'yyyy-MM'})
            }
        }
    }



</script>
</body>
</html>